package com.ming.service.impl;

import com.ming.dao.SSMAccountDao;
import com.ming.pojo.SSMAccount;
import com.ming.service.SSMAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
//业务层实现类
@Service("ssmAccountService")
public class SSMAccountServiceImpl implements SSMAccountService {

    @Autowired
    private SSMAccountDao ssmAccountDao;

    @Override
    public List<SSMAccount> findSSMAccountAll() {
        System.out.println("service查看所有执行了");
        return ssmAccountDao.findSSMAccountAll();

    }

    @Override
    public void saveSSMAccount(SSMAccount ssmAccount) {
        System.out.println("service保存账户执行了");
        ssmAccountDao.saveSSMAccount(ssmAccount);
    }
}
